<template>
  <div class="contant">
    <div class="header">
       <x-header :right-options="{showMore: false}" @on-click-more="showMenus = true">保证金冻结<a slot="right" @click="toHistory">+</a ></x-header>
        <scroller lock-x use-pullup use-pulldown @on-pullup-loading="loadMore" @on-pulldown-loading="refresh" ref="scroller">
        <flexbox>
<flexbox-item><div><p class="down" style="text-align:center;">途牛旅行社</p ></div></flexbox-item>
<flexbox-item><div><p class="down" style="text-align:center;">500，000.00</p ></div></flexbox-item>
<flexbox-item><div><p class="down" style="text-align:center;">2018.01.12</p ></div></flexbox-item>
<p>&lt;</p>
</flexbox>
        </scroller>
    </div>
    <div class="bodyContant">
      <div class="optionLists">
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      changeSing: '1',
      Lists: [],
      historyList: [],
      cancelList: []
    }
  },
  methods: {
    chooseOption (i) {
      this.changeSing = i
      if (i === '1') {
        this.Lists = this.historyList
      } else if (i === '2') {
        this.Lists = this.cancelList
      } else {
        this.Lists = this.cancelList
      }
    },
    gotoDetail () {
      this.$router.push({name: 'InsuranceOrderCancelQuery'})
    },
    getDealSearchData () {
      let self = this
      window.WebViewJavascriptBridge.callHandler('nativeRequest',
        JSON.stringify({'requstSource': 'internetRequest', 'url': 'mstep.do?act=business', 'params': {'method_Name': 'InsuranceDealSearch'}}),
        function (response) {
          response = JSON.parse(response)
          if (response.status === 0 || response.status === '0') {
            self.historyList = response.data.data[0].arraysH
            self.cancelList = response.data.data[0].arraysC
          } else {
            alert('fail')
          }
        }
      )
    }
  },
  created () {
    this.Lists = this.historyList
  }
}
</script>

<style scoped>
*{
  box-sizing: border-box;
}
.contant{
  height: 100%;
  position: relative;
}
.header{
  height: 3.37rem;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #F7F8FA;
}
.bodyContant{
  height: 100%;
  padding-top: 3.37rem;
  overflow: hidden;
}
.titleButton{
  padding: 0.5rem 0.75rem 0.5rem 0.76rem;
  border-bottom: 1px solid #EAEAEA;
}
.optionMsg{
  height: 0.88rem;
  display: flex;
  color: #999999;
}
.lineTtitle{
  line-height: 0.88rem;
  font-size: 0.26rem;
}
.diff1{
  margin-left: 0.29rem;
  margin-right: 2.62rem;
}
.diff2{
  margin-right: 0.77rem;
}
.optionLists{
  background: #fff;
  width: 100%;
  height: 100%;
}
.optionList{
  background: #fff;
  margin: 0 auto;
}
.prdName{
  font-size: 0.28rem;
  color: #333333;
  font-weight: bolder;
  line-height: 1.2rem;
  width: 53%;
}
.payAmount{
  font-size: 0.28rem;
  color: #ff6633;
  line-height: 1.2rem;
  width: 26%;
}
.dealDate{
  color: #999999;
  font-size: 0.26rem;
  line-height: 1.2rem;
}
.optionCell{
  display: flex;
  height: 1.2rem;
  width: 92%;
  margin-left: 0.3rem;
  border-bottom: 1px solid #F7F8FA;
}
.tipMsg{
  height: 0.88rem;
  font-size: 0.26rem;
  color: #999999;
  padding: 0.39rem 0 0.8rem 0.28rem;
  background: #F7F8FA;
}
.inDiv{
  display: flex;
  border: 1px solid #EC1B30;
  border-radius: 0.06rem;
}
.default{
  background: #EC1B30;
  color: #fff;
  height: 0.6rem;
  width: 2rem;
  font-size: 0.28rem;
  text-align: center;
  line-height: 0.6rem;
}
.line{
  border-left: 1px solid #fff;
}
.changeSty{
  background: #fff;
  color: #EC1B30;
}
</style>
